﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TestAngular.Migrations
{
    public partial class ItemMastersItemMasterAddItemFormAttribute : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "ItemFormAttribute",
                table: "BasicArchivesProductionOrderPreparation",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "DemandCode",
                table: "BasicArchivesProductionOrder",
                type: "nvarchar(200)",
                maxLength: 200,
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "ItemFormAttribute",
                table: "BasicArchivesProductionOrder",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "ItemFormAttribute",
                table: "BasicArchivesItemMaster",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ItemFormAttribute",
                table: "BasicArchivesProductionOrderPreparation");

            migrationBuilder.DropColumn(
                name: "DemandCode",
                table: "BasicArchivesProductionOrder");

            migrationBuilder.DropColumn(
                name: "ItemFormAttribute",
                table: "BasicArchivesProductionOrder");

            migrationBuilder.DropColumn(
                name: "ItemFormAttribute",
                table: "BasicArchivesItemMaster");
        }
    }
}
